.TH E1432_SET_TRIGGER_MODE 3 E1432
.SH NAME
.nf
e1432_set_trigger_mode \- Set trigger mode (either level or bound)
e1432_get_trigger_mode \- Get current trigger mode
.fi
.IX e1432_set_trigger_mode(3) 3
.IX e1432_get_trigger_mode(3) 3
.SH SYNOPSIS
.cS
SHORTSIZ16 e1432_set_trigger_mode(E1432ID hw, SHORTSIZ16 ID,
                                  SHORTSIZ16 mode)
SHORTSIZ16 e1432_get_trigger_mode(E1432ID hw, SHORTSIZ16 ID,
                                  SHORTSIZ16 *mode)
.cE
.SH DESCRIPTION
\fIe1432_set_trigger_mode\fR sets the trigger mode,
of a single channel or group of channels \fIID\fR,
to the value given in \fImode\fR.

\fIe1432_get_trigger_mode\fR returns the current value of the mode,
of a single channel or group of channels \fIID\fR,
into a memory location pointed to by \fImode\fR.

\fIhw\fR must be the result of a successful call to
\fIe1432_assign_channel_numbers\fR, and specifies the group of
hardware to talk to.

\fIID\fR is either the ID of a group of channels that was obtained with a
call to \fIe1432_create_channel_group\fR, or the ID of a single channel.

\fImode\fR selects the area covered by the trigger detection.
\fBE1432_TRIGGER_MODE_LEVEL\fR selects the positive or negative
crossing of a unique trigger level.  \fBE1432_TRIGGER_MODE_BOUND\fR
selects the exit from or entry to a zone bounded by two trigger
levels.  See \fIe1432_set_trigger_slope\fR, for the direction which is
effective.  If the trigger slope is positive, the zone is defined as
either crossing the level upwards, or exiting the zone.  If the
trigger slope is negative, the zone is defined as either crossing the
level downwards, or entering the zone.  This parameter may also be set
with \fIe1432_set_trigger\fR.

For input channels, the \fBE1432_TRIGGER_MODE_LEVEL\fR and
\fBE1432_TRIGGER_MODE_BOUND\fR values are both valid.  For tach
channels, only \fBE1432_TRIGGER_MODE_LEVEL\fR makes sense, so the
others are not valid.  For source channels, neither of these values
makes any sense.
.SH "RESET VALUE"
After a reset, \fImode\fR is set to \fBE1432_TRIGGER_MODE_LEVEL\fR.
.SH "RETURN VALUE"
Return 0 if successful, a (negative) error number otherwise.
.SH "SEE ALSO"
.na
e1432_set_trigger, e1432_set_trigger_slope
.ad
